package zl.ordermanager.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Tcustomer entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tcustomer", catalog = "ordermanager")
public class Tcustomer implements java.io.Serializable {

	// Fields

	private Integer id;

	private String customer;

	private String customerType;

	private String address;

	private String contacts;

	private String department;

	private String job;

	private String telephone;

	private String phone;

	private String fax;

	private String otherContact;

	// Constructors

	/** default constructor */
	public Tcustomer() {
	}

	/** minimal constructor */
	public Tcustomer(String customer, String customerType, String contacts, String department, String job) {
		this.customer = customer;
		this.customerType = customerType;
		this.contacts = contacts;
		this.department = department;
		this.job = job;
	}

	/** full constructor */
	public Tcustomer(String customer, String customerType, String address, String contacts, String department,
			String job, String telephone, String phone, String fax, String otherContact) {
		this.customer = customer;
		this.customerType = customerType;
		this.address = address;
		this.contacts = contacts;
		this.department = department;
		this.job = job;
		this.telephone = telephone;
		this.phone = phone;
		this.fax = fax;
		this.otherContact = otherContact;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "customer", nullable = false, length = 200)
	public String getCustomer() {
		return this.customer;
	}

	public void setCustomer(String customer) {
		this.customer = customer;
	}

	@Column(name = "customerType", nullable = false, length = 45)
	public String getCustomerType() {
		return this.customerType;
	}

	public void setCustomerType(String customerType) {
		this.customerType = customerType;
	}

	@Column(name = "address", length = 200)
	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Column(name = "contacts", nullable = false, length = 45)
	public String getContacts() {
		return this.contacts;
	}

	public void setContacts(String contacts) {
		this.contacts = contacts;
	}

	@Column(name = "department", nullable = false, length = 45)
	public String getDepartment() {
		return this.department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	@Column(name = "job", nullable = false, length = 45)
	public String getJob() {
		return this.job;
	}

	public void setJob(String job) {
		this.job = job;
	}

	@Column(name = "telephone", length = 45)
	public String getTelephone() {
		return this.telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	@Column(name = "phone", length = 45)
	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "fax", length = 45)
	public String getFax() {
		return this.fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	@Column(name = "otherContact", length = 200)
	public String getOtherContact() {
		return this.otherContact;
	}

	public void setOtherContact(String otherContact) {
		this.otherContact = otherContact;
	}

}